add counting and filtered-count patterns in 1.1.3