add getCartCount method but still have some map problems