Task: Text to Code
Input (English): select the rows whose losses record is equal to 8 . the number of such rows is 2 .
Output (English): eq { count { filter_eq { all_rows ; losses ; 8 } } ; 2 }