
Concept:
Thus, the required conditions are:
Step 1: Check the given structures.
Compounds containing the group: \[ -CONH_2 \] undergo Hofmann rearrangement and produce primary amines.
Step 2: Exclude substituted amides.
Compounds with: \[ -CONHCH_3 \quad \text{or} \quad -CONHC_2H_5 \] produce secondary amines, which cannot be prepared by Gabriel synthesis.
Step 3: Count valid compounds.
Only those compounds which:
Number of such compounds: \[ 3 \]
Final Answer:
\[ \boxed{3} \]

