With my head I pay homage to the 512,028 Sambuddhas

How did the Theravadins come up with this figure?