Add function Term.count_symbs