Add totalItems field to DMItemCollection