When I do this, knowing that I will only have a list, not a matrix, I use:
count =: 4 : '+/x=y'
Or for multiple searches in the list:
count =: 4 : '+/x=y'"0 1
Your method copies only those elements that are equal to x, and then counts the result. Summing units for equality is another operation.