M D LEARNING MAT COUNTING