'truthiness' fix for counter to allow 0-based indexing

Allows sets negative-value input to 0.