Matlab Count Same Elements Financial