added working mineral counter