Matt,
The functionality you require is referred to as Phase Counting Mode. In the S7G2 Users Manual, (Rev 1.00), please refer to the GPT - section 23.3.10 Phase Counting Function.
The S7 actually supports 10 different modes of phase counting.
Hopefully one of these modes will do what you require.
Richard