Compare the total occurrence of two characters from a string

In this short example we are going to compare the total occurrence of two characters from a string using python program. If the total occurrence of those two characters is the same then the program will return true, otherwise return false. You also need to return true if there is no such two characters in that string.

The original question is asking us to compare the total occurrence of both x and o character but I have modified it so we can compare any two characters as we wish to. We also need to make sure we can compare the total occurrence of those characters regardless of lower or uppercase character.