I'm not a fan of using masks for counts because they're normally quite opaque. I would prefer a global function:

```rust
fn queue_count(bits: uint) -> uint { ... }
```