file to extract the occurrences