cart_count method added to User model