Charmed and bottom baryons from lattice NRQCD