Count only the correct commands