I was thinking whether its feasible to use a 8-bit counter with auto-reload to capture the number of peaks detected within 100ms.