improved counting of mime types