Accurate occupancy information is crucial to the demand response HVAC control. However, traditional passive infrared (PIR) occupancy sensors can only provide binary results of occupant presence without detecting the number of people in a room. In this paper, a low-cost bi-directional people counter was developed to determine the occupant number in a single entry room by detecting people entering or leaving the room. The developed people counter was designed to be installed in the doorway with a capability of recording the time and the number of people entering, leaving, and staying in the room separately. A field evaluation of the developed people counter was conducted in a single entry student lounge in a period of two weeks.