No but I can describe one:
LED and resistor in series, across one phase of the genny. (Or two LEDs and the resistor all in series, one LED a visible type for monitoring and checking you got the resistor right, one the LED in the optoisolator - which might be an infrared type or encapsulated so you can't view it.) Pick a resistance value so the LEDs are non-trivially illuminated at the lowest RPM you want to measure, aren't burning out at the highest - (or at the charging voltage.) Easiest thing to do would be to pick the resistor you'd normally use to run an LED from the charging voltage.
If your speedo has a reed-switch sensor just hang the photodiode / phototransistor of the optoisoloator where the reed switch would go. (If the speedo doesn't count when the mill spins you've got the wires swapped so switch 'em.)
If it's an inductive pickup you'll need to figure out how it's hooked up inside. Start by just hooking the photo-whatsit up where the coil will go and spinning the mill up - switching and trying again if it doesn't count. If it doesn't count in either direction, you'll need to look into what the input circuit is like:
If one side is hooked to one side of the battery (check with an ohmmeter - with the power OFF - after you've disconnected the coil) you can probably drive it by putting a hundred-K or so from the other side of the battery to the other input wire, then hanging the photodiode/phototransistor and proceeding as above. If not we'll have to look into it more. (It might have some op-amp circuit in there that needs some figuring out.)
How's that for starters?