The number of compounds from the following which can undergo reaction with Br/KOH (alcoholic) to give respective products and these respective products can also be obtained separately by Gabriel phthalimide reaction is :

Hofmann bromamide degradation converts a primary amide into a primary amine containing one carbon atom less.
Therefore, only primary amides can undergo this reaction.
Gabriel phthalimide synthesis is used for the preparation of primary aliphatic amines. It is not suitable for the preparation of aromatic amines because aryl halides do not undergo nucleophilic substitution with potassium phthalimide under these conditions.
Hence, a compound must satisfy both of the following conditions:
Evaluating the given compounds:
Thus, 3 compounds satisfy both conditions.
Hence, the correct answer is 3.
Tagged Reactions and tests of amines. Machine-assigned, so read it as a strong shortlist rather than a verdict.