title: Get upload file count
body: <p>I am using jquery uploader from <a href="https://github.com/blueimp/jQuery-File-Upload" rel="nofollow">here</a> and I would like to know how do I get the total number of files has been added and not uploaded.</p>
  
  <p>There is no specific documentation on the new version so can anyone say me how do I do this?</p>
  
  <p>As I need to get this way "<code>uploading 1 of n files</code>"</p>
  
  <p>Here in the <a href="https://github.com/blueimp/jQuery-File-Upload/wiki/Options" rel="nofollow">documentation</a> says:</p>
  
  <pre><code>$('#fileupload').bind('fileuploadadded', function (e, data) {
    //Here I need to get the upload count.
   });
  </code></pre>
  
  <p>And If I as shown below it gives me count as 1</p>
  
  <pre><code>var totalfiles = data.files.length; 
  alert(totalfiles);
  </code></pre>