Assuming it's a gear for tooth belts, you can take a second estimate by measuring the diameter at the top of the teeth:
perimeter = PI * diameter
pitch = perimeter / number of teeth = diameter * PI / number of teeth
That should be sufficient precisely, as there is only a finite number of available pitches. Another solution would be to go to a workshop and ask the people there for a measurement, of course.