have to take it out. the number will be stamped into the plastic gear.
also the tire size and gear ratio will determain the speedo gear you need.
So you need to know what tire you will be running to determain the gear you need.
Here is a good chart ....