Counted # of pears using 'if statements

Counted # of pears using 'if statements