Renamed numberOfItems variable for readability