Matlab Count Same Elements Of A Story