Implementing LM339 comparator to count analog peaks
The circuit below should do the trick.

I A.C. coupled the input signal and biased it to 2.5V using C1 and R1, R2. 

Shotky diodes D1, D2, with R7 afford you protection in case the signal ventures over 2.5V peak to peak.

C2 provides some noise filtering. You may need to adjust this size to best suit your application

The reference is set on the plus pin at 2.5V with about +/- .44V hysteresis. If the signal has a ripple or noise larger than that decrease the size of R5.

R6 provides the final pull-up.







simulate this circuit &ndash; Schematic created using CircuitLab



EDIT: Since your input signal is a lot larger than you originally intimated, You could also use the following circuit to simply half-wave rectify it and attenuate it a little.  

Benefit of this method is you pretty much guarantee full swing on the input of the comparator. That allowed me to decrease R5 giving you more hysteresis and lowered C2.







simulate this circuit