I'm new to electronics and working towards a project. I was hoping someone could help me choose the correct component for my constraints. I'd like to know what type of sensor I should be using. It needs to : Sense mechanical motion, a towards and away from motion to be more specific, be able to detect in complete darkness, hopefully be relatively small... say fit in a 1/2" by 1/2" space, but as small as possible is best, sense the motion which could be intermittent or move very quickly, say 800 movements per minute, be able to send the detection signal to a counter, which is counting down from a preset number, hopefully not consumer too much electricity so it could run from a cell or a battery. A good operating temperature range wouldn't hurt too, nothing extreme, just say what a human can handle.
Is there a sensor that meets these constraints? I'm having a hard time piecing this together. I've done a few projects like a burglar alarm and human reaction timer, etc. but nothing purpose specific from scratch. Please point me in the right direction. Any help would be greatly appreciated!