% 各血液型の人数を数える

function count = count_distribution (l)
    count(1) = sum(l == "AA");
    count(2) = sum(l == "AO") + sum(l == "OA");
    count(3) = sum(l == "OO");
    count(4) = sum(l == "BB");
    count(5) = sum(l == "BO") + sum(l == "OB");
    count(6) = sum(l == "AB") + sum(l == "BA");
end
