Face and Object Detection Algorithms for People Counting Applications