Add counter_cache support

Add support for AR's `counter_cache`