I am altering an application to fit with a clients specs. There are jpegs being held in a directory, I'll call C:\images. The format of the names of these are F######_000.jpg (The ######) are a unique ID numbers and the _000 portion is for the first image and the second image if there is one would be F######_001.jpg. I have the unique id and I need to be able to check for the number of files in the C:\images directory that have the matching ###### (Unique Ids) to see how many to insert into a dataset in C# code. How can I go about doing this?