This is a numerical-answer question. The correct answer is shown below.
[Solution by Dr. Abubacker] The positive neutral $FeCl_3$ test shows a phenolic $-OH$. NaOH/$CH_3Br$ adds one $CH_3$ (giving $C_{11}H_{14}O_2$, a phenol methylated), and HI gives $CH_3I$, indicating an $-OCH_3$ group. Hot conc. NaOH isomerises $A$ to $B$ (same formula), which happens when an allyl side chain shifts to a propenyl side chain, and decolorising alkaline $KMnO_4$ shows a $C=C$. So A is eugenol (4-allyl-2-methoxyphenol), a trisubstituted benzene bearing $-OH$, $-OCH_3$ and $-CH_2CH=CH_2$. $\pi$ bonds: $3$ in the benzene ring $+1$ in the $C=C$ of the allyl group $=4$. Answer: 4.