Which of the following lines of Python is equivalent to the following sequence of statements assuming that counts is a dictionary?
if key in counts:
counts[key] = counts[key] + 1
else:
counts[key] = 1
A. counts[key] = counts.get(key,0) + 1
B. counts[key] = counts.get(key,-1) + 1
C. counts[key] = (key in counts) + 1
D. counts[key] = key + 1
E. counts[key] = (counts[key] * 1) + 1