Substring Count In Python Pandas Interview