Add handling for case when occurrence count is 0