Subj : Re: any function to handle this kind of counting? To : comp.programming From : Rob Thorpe Date : Fri Jul 29 2005 12:01 pm mensanator@aol.com wrote: > Ross wrote: > > Dear all, > > and then i want to count, say, for "1", there are two A's, one E, ... > > > > it seems that a for loop can do the job but as we don't know how many > > instances there are, i.e. don't know A, C, E and then what will occur in > > this corresponding vector, is there any function which is devoted to handle > > this kind of counting problem? thx!! > > Something like this, perhaps? You don't mention what language this is, is it Python? .