plant mines and calculate mine count