matching logs count