In the animation, if the pinion had all its teeth, there would be 12. 7 of those teeth have been removed (5 remaining). Not absolutely sure, but based on the model, it may only work with an even number of pinion teeth (prior to removal). 1 more than half of the original number of teeth likely have to be removed.
The rack shifts a total (from left to right say, before returning) of:
(pitch diameter) x (pi) / 2
or
(rack tooth pitch) x (number of original pinion teeth) / 2
This mechanism is really not very nice. Although it appears to be simple, its motion is quite violent. At the end of each stroke there is infinite acceleration. In the animation, it looks smooth, but that's only because the rack has no mass.