used .to_i to ensure if you make a meal nil it will be valued as 0, and not crash the counting mechanism