added a counter to keep track of how much food is lost