how do i write a function that counts the square root of a number?