Add dba/counts handler to the core tagging plugin

Closes #1896.

When deleting spammers, I found my tag counts would be messed up if they
used any tags. This fixes that.