numberOfElements = MIN(numberOfElements, [self count]);