Automatic passenger counting: technology and practice