Fix and refactor max article count for cart.