My data looks like :-
After changes, Your table will look like this:
Then Write this simple DAX Code:
CountOfSelection =
COUNT(Preference[customer])
If you test it:
You need to filter the blank row not to show its values if you prefer using filters pane, see below picture: