Add function for count the elements number in blockingQueue