count_automorphisms function

Get the number of automorphisms