count and count by dcs