for ASP VBScript, use this code to show the number of items in the cart.
<%=WA_eCart_TotalColumn(yourCart, "Quantity")%>
where yourCart is the name of your eCart object.
Tip: you can get this code by adding a Quick Cart display using the eCart Display Manager