Fix reset counter cache

Check if the counter was found on that association or not.  Fixed/added tests.

Review @jduff 
cc @arthurnn