public int getSpecificity() {
		int result = 0;
		for (byte element : mask) {
			result += Integer.bitCount(0xff & element);
		}
		return result;
	}
Counts the total number of known bits in the pattern

<p>
At a slightly lower level, counts the number of 1-bits in the mask.

@return the count
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/app/plugin/assembler/sleigh/sem/AssemblyPatternBlock.java