<｜begin▁of▁sentence｜>### Instruction:
Given a VertexClustering object of a graph, how would you extract and print the number of vertices in each subgraph corresponding to the clusters?
### Response:
import igraph as ig

# Assuming 'clustering' is a VertexClustering object
subgraphs = clustering.subgraphs()

# Print the number of vertices in each subgraph
for i, sg in enumerate(subgraphs):
    print(f'Subgraph {i} has {sg.vcount()} vertices')
<|EOT|>
