```erlang
count_mappings(Mappings) ->
    lists:foldl(fun(M, Acc) ->
                        orddict:update_counter(cuttlefish_mapping:mapping(M), 1, Acc)
                end, orddict:new(), Mappings).