simplified hostname frequency calculation