Your call to document.GetElementById()
should follow case-sensitive naming conventions and therefore be called:
document.getElementById()
You can try this, which includes some safety typecasting:
function cart() {
var itemCount = document.getElementById("cart").innerHTML;
document.getElementById("cart").innerHTML = Number(itemCount) + 1;
}