People counting and traffic management