Hi,
why don't you measure the thread itself?
If you put a micrometer or vernier across the diameter this will give you the thread diameter.
ie, if it measures just under 10 mm, then it will be a 10mm dia bolt. Thread sizes are always slightly smaller than nominal.
Then measure the distance across the top of the thread, and this is then the pitch, so; if this measures 1.00 mm, the bolt is; M10 X 1.00.
Regards
David