Function to return the count of indices in from the given binary matrix having equal count of set bits in its row and column
def countPosition ( mat ) : NEW_LINE INDENT n = len ( mat ) NEW_LINE m = len ( mat [ 0 ] ) NEW_LINE DEDENT