I want to count the number of a group array in the array. Example
$arr1 = [61,41,41,61,89,90]
$arr2 = [61,41]
$result = 2 //found 61,41 in $arr1 2 time;
Or Example
$arr1 = [89,61,41,41,61,90]
$arr2 = [61,41,89]
$result = 1 //found 61,41,89 in $arr1 1 time;
How to write the code, or concept?