Python find all substring in string. How do I count the number of instances of a class...