Investigation of hadron multiplicities and hadron yield ratios in heavy ion collisions