fix #394. support count(distinct) and count(DISTINCT)