I have had success using a simple wooden toothpick. Break off the sharp end, and slide the pick around the thread while keeping it in line with the axis, using pressure from a finger (etc). This should result in a series of grooves or dirty lines (or both) along the pick, so you can measure how many fit to an inch or to 25mm. Then a moment's calculation should reveal the threads-per-inch, or the pitch in mm.
Cheers, Tim