A teaching laboratory keeps a tray of amine samples for qualitative analysis. In one exercise, students test each sample with two reagents and note which samples respond to both. The six samples are ethylamine, aniline, N-methylaniline, benzylamine, trimethylamine and 4-methylaniline. How many of them give a foul-smelling product with chloroform and alcoholic potassium hydroxide and also nitrogen gas on treatment with nitrous acid in the cold?