Simple_caches is a project mainly written in Ruby, it's free.
Counter caches, as simple as you can imagine
Documentation coming soon...