networkx.graph_clique_number
networkx.node_clique_number
Returns the number of maximal cliques in G.
An optional list of cliques can be input if already computed.