<｜begin▁of▁sentence｜>### Instruction:
Given a directed Erdős-Rényi graph with 10 nodes and 20 edges, can you use the motifs_randesu_no function in igraph to count the total number of 3-motifs?
### Response:
from igraph import Graph

g = Graph.Erdos_Renyi(n=10, m=20, directed=True)
motif_counts = g.motifs_randesu_no(size=3)
print('Total number of 3-motifs:', motif_counts)
<|EOT|>
