Modified intersection methods to return values and number of occurrencies in one array