Refactor occurrence => counting, add conform function