merging: count compound shards in loop (#235)
incrementing and decrementing the counter turned out to be too brittle,
especially because we want to be able delete shards on disk manually if
necessary. It make most sense to just count them in the main loop that is running
to fetch new repo options from frontend.