Numerical answer type, tolerance 0.5.
Answer: 2
The amide NH2 lone pair is delocalised onto C=O. The piperazine nitrogen bonded to the pyridine ring is conjugated with the ring and treated as non-basic. The pyridine ring nitrogen (in-plane sp2 lone pair) and the secondary amine N-H of piperazine (sp3, localised) are basic. Number of basic nitrogens = 2.