Added max count bound of subgraphs to stop early.