Word Counter in C