Fix count serialization

Fixes #1015 
`joins.get(0).getTarget()` is already called, and stored in `source`.
But it's no big deal.