Measure queue length