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