order count by type