add function num_of_pythagorean