adding counter cache #2214

Example:

  class Person
    include Mongoid::Document
    has_many :pets
  end

  class Pet
    include Mongoid::Document
    belongs_to :person, counter_cache: true
  end