<script>var conta=0;</script>

<input type="checkbox" name="pippo00001" onclick="conta+=(this.checked)?1:-1;">

ciao