% Counts number of occurrences of array values in another array
%
%   count = countMember(A, B) counts the number of times the elements of
%   array A are present in array B, so that count(k) equals the number
%   of occurences of A(k) in B. A may contain non-unique elements.
%   count will have the same size as A. A and B should have the same class.
%   Classes that are supported by unique and ismember are also supported by
%   countMember.
%
%   Examples
%   >> count = countMember([3, 2], [1, 2, 3, 4, 2])
%
%     count =
%
%          1     2
%
%   >> count = countMember({'a', 'b', 'lala'}, {'a', 'b', 'b', 'lal'})
%
%     count =
%
%          1     2     0
