Given an array of integers, fill the result array with all elements that occur exactly once. Return the size of the result array.