Integrating AI and IoT in Passenger Counting Systems