Half of a herd of deer are grazing in the field and three fourths of the remaining are playing nearby. The rest 9 are drinking water from the pond. Find the number of deer in the herd.