The generator expression (element.lower().count('b') for element in List1) produces the length for each element. Pass it to sum() to add them up.
List1 = ['apple', 'banana', 'Baboon', 'Charlie']
num_times = sum(element.lower().count('b')
for element in List1)
time_plural = "time" if num_times == 1 else "times"
print("b occurs %d %s"
% (num_times, time_plural))
Output:
b occurs 3 times
If you want the count for each individual element in the list, use a list comprehension instead. You can then print this list or pass it to sum().
List1 = ['apple', 'banana', 'Baboon', 'Charlie']
num_times = [element.lower().count('b')
for element in List1]
print("Occurrences of b:")
print(num_times)
print("Total: %s" % sum(b))
Output:
Occurrences of b:
[0, 1, 2, 0]
Total: 3