Changed char *text to int node_count