Presuming that the word "numbers" in your question actually means "integers", then there are 50 integers from 1 to 50 inclusive that have a perfect square as a factor. That is because 1 is a perfect square and 1 is a factor of every integer.
John
My calculator said it, I believe it, that settles it