Identifying occurrences on multiple inputs