DRILL-1760: implement count(map)