Range and Roots: Two Common Patterns for Specifying and Propagating Counting and Occurrence Constraints