Find all files with the extension ".py" and search for the phrase "base_class" or "base_class" followed by any character, case insensitively, and print the number of occurrences.
find -name "*.py" | xargs grep -ionP "base_class"{1,2}