getNumPaths function

get the number of metabolic pathways for the given group