Takes a number and returns the number of perfect squares which are less than that number.