Given two arrays of strings, return the number of times each string of the second array appears in the first array.

#### Example

```python
array1 = ['abc', 'abc', 'xyz', 'cde', 'uvw']
array2 = ['abc', 'cde', 'uap']
```

How many times do the elements in `array2` appear in `array1`? 

* `'abc'` appears twice in the first array (2)
* `'cde'` appears only once (1)
* `'uap'` does not appear in the first array (0)

Therefore, `solve(array1, array2) = [2, 1, 0]`

Good luck!

If you like this Kata, please try:

[Word values](https://www.codewars.com/kata/598d91785d4ce3ec4f000018)

[Non-even substrings](https://www.codewars.com/kata/59da47fa27ee00a8b90000b4)

Difficulty: introductory

Starter code:

def solve(a,b):
	

Solutions:
def solve(a,b):
    return [a.count(e) for e in b]

from collections import Counter

def solve(a,b):
    c = Counter(a)
    return [c[s] for s in b]

def solve(a,b):
    return [a.count(x) for x in b]

def solve(a,b):
    return list(map(a.count, b))

def solve(haystack, needles):
    return [haystack.count(needle) for needle in needles]

from collections import Counter

def solve(a, b):
    return list(map(Counter(a).__getitem__, b))

def solve(first,second):
    return [first.count(word) for word in second]

def solve(array1, array2):
    return [array1.count(e) for e in array2]


solve=lambda a,b:(lambda c:[c.get(s,0)for s in b])(__import__('collections').Counter(a))

from collections import Counter


def solve(arr_1, arr_2):
    cnt = Counter(arr_1)
    return [cnt[a] for a in arr_2]