with only one queue per priority, this can be simpler:

```python
sum(len(queue) for queue in self.queues.values())
```