public int getNumberOfItems(char type) {
        if (type == 'T') {
            return numberOfTrees;
        }
        if (type == 'D') {
            return numberOfDucks;
        }
        if (type == 'H') {
            return numberOfHunters;
        }
        return -1;

    }