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