matlab find number of repeated values