How many sports were played in summer Olympic 2016?

How many sports were played in summer Olympic 2016?A. 22
B. 28
C. 34
D. 40