declared simcount var in webapp