If you declare an integer, then you can use += to add to its value with or without the $(( )) around the right hand side - but no spaces!
0
1
1
0
0