add subgraph count