function count(arr, item) {
var count = 0;
for (let i=0;i<arr.length;i++) {
if (arr[i]===item) {
count++;
}
return count