Use a definition of molar concentration - moles in 1 liter of solution. This means that moles are calculated by multiplying the molar concentration of solution by a volume in liters.
Your question concnerns moles before neutralization since your problem has an excess of NaOH. After moxing no HNO3 will be present in solution.