Nope, pitch doesn't care. It's all about the ratio of the gear diameters. And since the gear diameter is directly proportional to the number of teeth, it's easy to use tooth counts instead. You could measure the gears and divide the diameters or circumference and get the same result.