Fix error to count commands + PEP8