if, for example, you put a magnetic or optical sensor inside, and magnet or LED outside,
then each time the sensor went around, it would "see" the magnet or LED
but then you need power inside a rotating object, so you'll need a battery,
or some sort of power take up, likely brushes
i agree with FvM - please provide more information