PaulS:
This forum is about programming the Arduino. Find the PIR sensor programming forum for help programming your sensor.
What objects? Do you know what a PIR sensor senses?Ditch that stupid code. You started from a crappy example.
Where are you counting the number of times the sensor has become HIGH? How can you expect to move the servo after the count reaches three if you don't count? If you don't determine that the sensor has changed state?
Im not sure how to go about moving the servo after the count reaches three. As of now it moves right after the first object has passed through. The objects are just 3 coins.