I am not sure that you can use conditional searches, just conditional field calculation using eval.
another way is to make sure that the field location exits, then count
| WHERE NOT ( Location=" " OR isnull(Location) ) | stat count by Location
You could also include it in the stats command directly:
stats count(eval(Location==" " OR isnull(Location))