Given an integer input, return the total number of all perfect square square. Note 2^2+3^2 and 3^2+2^2 is counted as one.