Rotating black hole entropy from M5-branes