Is a shaft encoder the rotational sensor on a motor shaft that allows a microcontroller to know the rotational velocity?

Or is it a secret decoder ring for everyone's favorite bad-ass blaxploitation film hero?