how to check how many file names start with certain chars?
<p>I have an iphone app that saves some people's data on a single file. Each filename is represented by the user name plus an incremental number, say "tommy1", "tommy2",... , "tommy32", then "sarah1", "sarah2", and so on.</p>

<p>Is it possible to count how many of them are "tommy"'s and how many are "sarah"'s from within the code ?
thanks</p>
