<｜begin▁of▁sentence｜>### Instruction:
Given a graph with edges [(0, 1), (1, 2), (5, 6), (3, 4)], can you determine the number of connected components in the graph using NetworkX?
### Response:
import networkx as nx

# Create an undirected graph
G = nx.Graph()
# Add edges
G.add_edges_from([(0, 1), (1, 2), (5, 6), (3, 4)])
# Get the number of connected components
components = nx.number_connected_components(G)

print('Number of connected components:', components)
<|EOT|>
