A compact spin-rate sensor