Update the snippet counters when snippets are deleted or edited