HackerRank World CodeSprint 8: Snake Case
implementation
Simple one.
#!/usr/bin/env python3
print(input().count('_') + 1)
perl $19$byte.
print s/_//g+1for<>
$17$byte bash, but this got WA. It seems there are some test cases which have no newline.
tr -cd _\\n|wc -c