Added function to count maximal cliques (#513).