To update a variable, your CCXML document must use an <assign> element:
<!-- Declare a variable to store the number of calls --> <var name="CallCount" expr="0"/> <assign name="CallCount" expr="CallCount+1"/>
See also CCXML variables and their scope.