added function to retrieve number of reachable nodes in an irg