Task: Text to Code
Input (English): select the rows whose homeport ( as of july 2013 ) record fuzzily matches to portsmouth . the number of such rows is 6 .
Output (English): eq { count { filter_eq { all_rows ; homeport ( as of july 2013 ) ; portsmouth } } ; 6 }