Return the number of Pythagorean triples contained in the input.