Delete references from the counters table
Add query to Counter
add delete() to Counter; add testPoolDelete()
Merge pull request #41 from motivator/pr/40

update to pr #40