# File lib/mongoid/relations/embedded/many.rb, line 88 def count target.select { |doc| doc.persisted? }.size end