What is a tachometer, what are its types? How does a tachometer work?