function result = count(argument)
% COUNT - count the number of character in a set.
result = 0;
for i = 1:length(argument),
       if strcmp(argument(i), 'a')
          result = result + 1;    
       end;
end;