useCounter boolean introduced; counter can start at zero, and negative input starts at zero