Simple scheme of counter in Python, just for remeber