<｜begin▁of▁sentence｜>### Instruction:
Given the API documentation for 'grid_graph' which generates an n-dimensional grid graph, can you create a 2 by 3 by 4 grid graph and tell me how many nodes this graph has?
### Response:
import networkx as nx
G = nx.grid_graph(dim=(2, 3, 4))
nodes_count = len(G)
print('Number of nodes in a 2x3x4 grid:', nodes_count)
<|EOT|>
