deal with .count on has_many in rails 3.2