https://www.acmicpc.net/problem/10821
엄청 간단한 문제! 정수의 개수 자체를 세는 것이라 int형으로 변환해줄 필요도 없다. 😮
print(len(input().split(",")))