def count_courses(self):
        """Return the average number of courses per string."""
        c = 0
        for x in self.tuning:
            if type(x) == list:
                c += len(x)
            else:
                c += 1
        return float(c) / len(self.tuning)
Return the average number of courses per string.