Added function to find amount of elements in common between arrays