Measure period of waveform on GTETRGA

In order to do this I need to capture the counter value on the rising edge of GTETRGA, and at the same time clear the counter.

If I set the rising edge of GTETRGA to clear the counter, AND to capture, will it work? Or will it capture the value of the counter after it has been reset? (I.e. zero)