It's very straightforward. Count the pulses for 1 second. This gives revs per second directly. You may want to display revs per minute, in which case divide by 60.
Assuming pin 0 used for input, the command would be:
count 0,1000,w0
'w0 now holds revs/sec
w1=w0/60
'w1 now holds revs/min