A σ bond is a type of covalent bond. It is formed by the head-on overlap of two atomic orbitals. These combinations of overlapping orbitals will be as s−s,s−pz or pz−pz.
Also, a π bond is also a covalent bond. It is formed by the side-to-side overlap of two atomic orbitals. The atomic orbital may have combinations as px−pxorpy−py
Thus as in the figure, total σ bonds will be 17 and π bonds will be 4.
Thus option B is correct.