added counter_cache to rating model to allow for easier ordering on the associated model