Another case of the unpleasant masked->count->unmask-if-0 approach. Is there anything that we can do about it? I suppose for PP I don't think there is any other choice.