This is a numerical-answer question. The correct answer is shown below.
[Solution by Dr. Abubacker] The structure is $HOOC-CH(CHO)-CH_2-CH=CH-CH_3$ ($C_7H_{10}O_3$, 20 atoms, no rings), so there are $20-1=19$ sigma bonds in the skeleton. The $\pi$ bonds: $C=O$ of acid, $C=O$ of CHO and $C=C$ = 3 (each double bond has one extra $\pi$). Total $\sigma+\pi=19+3=22$. Answer: 22.