Using PowerShell, I can import the CSV file and count how many objects are equal to \"a\". For example,
@(Import-csv location | where-Object{$_.id -eq \"a\"}).Co
Try cycling through properties like this:
(Import-Csv location | %{$record = $_; $record | Get-Member -MemberType Properties | ?{$record.$($_.Name) -eq 'a';}}).Count