Number of components in the graph