Where is the problem? I notice your code is in pieces but you don't seem to have it arranged in that way. Consider this organization

1. get the input counts into input_c
2. print the counts as...