if one has a list containing a set matrices how one can write a code which will give output as a dictionary where the keys are the distinct matrices in the list and values are the number of times that matrix appears in the list or the multiplicity of that matrix in the list.