updated to use frame rate as bin size for counting spikes