You simply count the gear teeth, one is a ring gear and the other is a pinion but the assembly has to be out of bike to do it. Divide the smaller number into the larger.
You can get a rough idea as well by jacking up front wheel in air, disconnecting the speedo cable at the gauge, and carefully rolling the marked front tire exactly one turn while counting how many times the speedo inside cable turns and no dividing needed then, the number of turns IS the ratio if the front wheel = one.