<｜begin▁of▁sentence｜>### Instruction:
As a clinical social worker providing therapy and support services to individuals dealing with mental health issues, you have been tasked with using your knowledge of NetworkX to determine the number of nodes in a graph representing patient interactions and support networks. The specific task involves leveraging the number_of_nodes function in NetworkX to retrieve this critical information.
### Response:
import networkx as nx

# Create a graph
G = nx.Graph()

# Add nodes to the graph
G.add_node(1)
G.add_nodes_from([2, 3])

# Use the number_of_nodes function
count = nx.number_of_nodes(G)

print(f'Number of nodes in the graph: {count}')
<|EOT|>
