How many balls??

GeoG

Chief Minister (5k+ posts)
Easy way
Don't count them as squre
Count them in rows and add up
you will never get wrong answer.