Rigol's DHO1k can easily do that and I'm pretty sure the DHO800 / 900 models as well since they untilize the same basic software package. Even the venerable DS1000Z was / is capable of this, though IIRC, the pulse / slope counting function had been added with some firmware update as the instrument matured. Whatsoever, now it's there.