you can use pulsin for sure... if you read few times and do an average, it can provide great results if your pulses are short enough to avoid an overflow of pulsin variable.

BUT i'll prefer to convert pulses to voltage and read from a/d converter.

have a look to this thread can give you some hints...
Click Here