change item to item counts to be more efficient