added queue length method to get the current queue size