Counts the total amount of items of the specified material type in this inventory.
The total amount of items of the specified material
The material type to count