reduce duplication
number of shopping cart items method added to model