making that counter a bit more pythonic, i guess