Attached are screen shots of actual code. We are using the "Gear Tooth sensor" mode of the counter, which based on our results, must only be counting the rising edges, and not the falling edges.
The questionmark in the timed task is the TBH control. (Not sure where my son put that one
Scott.