The last five letters of the painti are Yayya, Rara, Lalla, Vava and Ṛaṛa, and they are grouped together for a reason that is easy to miss. They are not a miscellany. Four of them are sonorants or semivowels, sounds produced with the vocal tract open enough that no closure is made, and the fifth is a flap, a closure so brief that it behaves differently from the stops.
None of them fits the five by five grid, because that grid classifies by place and manner of closure and these sounds have no closure to classify. Placing them after the series rather than distributing them among it is a decision the Brahmic tradition made long before Gurmukhi existed, and Gurmukhi inherited it along with the rest of the ordering. What Gurmukhi did do independently is decide which of them to keep and how many. It has no separate letters for several sounds that other Brahmic scripts distinguish here, and it added one, Ṛaṛa, at the end. The result is the count of thirty-five: twenty-five in the grid, five after it, three vowel bearers and the two consonants set in front. That arithmetic is the structure of the painti and the reason its name is a number.
Comparison with other Brahmic scripts sharpens the point. Devanagari keeps a longer tail here, with three sibilants and additional letters that Gurmukhi either merged or never adopted, and its count is correspondingly different. The tail is where the family varies most, because the grid is common inheritance and the letters after it reflect what each language actually needed.