The syntax seems mysterious. Please help here.
int? count = (from cartItems in storeDB.Carts
where cartItems.CartId == shoppingCartId
select (int?)cartItems.Count).Sum();
return count ?? 0;
Thanks