Use more concise syntax to increment counter

Found via
https://www.linuxquestions.org/questions/linux-general-1/bash-equivalent-to-c-increment-operator-131504/#post3452420
Fix #3