Count every heartbeat- is that possible?

Hi, I'm trying to find a way to (via any device or api) get every heartbeat (not the rate...) between the start and the end of the time period.

I can't find any answer to whether or not this is possible.

Does anyone know before I spend a lot of time trying to determine if it is? The heart rate is just not useful to me.

Thanks!