public static int CountNodes( IGraph graph, NodeType nodeType, IActionExecutionEnvironment actionEnv, int threadId )