# File lib/mongoid/relations/targets/enumerable.rb, line 317 def size (unloaded ? unloaded.count : loaded.count) + added.count{ |d| d.new? } end