How To Calculate Number Of Squares