JS Track scroll inputs rather than scroll position

Is there any way to get the “amount” of scroll inputs rather than the scroll position?

I have a scroll variable that resets to 0 on inactivity, and then when I start scrolling I don’t want it to start at my position (for example 500), but rather 1,2,3, etc.

Hope this makes sense!