Task: Text to Code
Input (English): select the rows whose opponent in the final record fuzzily matches to petra kvitová . the number of such rows is 3 .
Output (English): eq { count { filter_eq { all_rows ; opponent in the final ; petra kvitová } } ; 3 }