PauliMatrices.count

PauliMatrices.count(value) integer -- return number of occurrences of value