Only count active bins

Ignoring archived (1) and deleted (-1).

Fixes #2015