title: jquery / asp.net - get the number of images in a folder where the first two characters of the file name are XX
body: <p>I have been looking for the best way to obtain the total number images in a folder where the first two characters on the file name are XX and place this number into a variable.</p>
  
  <p>So for example - I have a folder containing the following images:</p>
  
  <p>XX-01.jpg<br>
  XX-02.jpg<br>
  XX-03.jpg<br>
  YY-01.jpg<br>
  ZZ-01.jpg</p>
  
  <p>So I would populate the variable with 3 in this case.</p>
  
  <p>Does anyone know of any way to do this?</p>