Hi. How does the MSD 6AL-2 IGNITION count the RPM on a 4 cylinder engine? Does it measure the time between each spark or does it use the time of 4 sparks?

The thing I'm really interested in is: Would it work with a odd firing order? Or does the interval between each spark need to be the same?