Docs for size of queue here suggest method size(), but in implementation here and here method is called qsize()
size()
qsize()