How to count the number of high voltages in Hantek Oscilloscope?
With the additional data you've now posted, the answer is simple:

You cannot.

The bandwidth of your scope is not up to the task of viewing a USB2.0 signal.

USB2.0 runs at 200MHz, and your scope has a bandwidth of (at best) 20MHz (See the Hantek site for the model 6022BE.)

Whether the PC software for the scope is capable of counting the pulses (or not) is pretty much irrelevant, since the scope isn't capable of capturing the USB signal.

You need to look up bandwidth, sampling, shannon's theory, aliasing, and antialiasing filters.



The areas I've marked in red should be bursts of data.  The smaller area marked in blue would be a shorter data burst.  In both cases, you should see a bunch of 2.8Volt peaks, but you only have 20mV.

You are not seeing the data itself, only smeared mush that tells you "there may have been data here."

When data is present, there would be something like 200 peaks in 1 square on your scope (set for 10µS per square.)  



For comparison, here is a good image of USB data captured with a Tetronix scope (from the Tektronix site):