Device for counting trolleys to determine and report line speed