You can use the millis function to get the current time. Set a "count until" time. Then, in the interrupt handler, count every pulse. In loop, determine if the necessary time is up, again using millis to get "now". If it is, do something with the pulse count, and reset it to 0 and set a new "count until" time.