How can I pipe the variable name dynamically? My point is, if user's input is 'c', then counterc should raise with 1.
Here is what I have so far.
counterc = 0
countern = 0
counterx = 0
letter = input()
if letter in ['c','n','x']:
counter${letter} += 1 # does not work
eval('counter' + letter + '=' + 1) # tried with this one too, but still does not work