An architecture of a normative system: counts-as conditionals, obligations and permissions