title: SPServices Get number of ListItems with the same titles
body: <p>What i need is to find all list items with the same title using SPServices. I've made a CAML query from TextBox1 but have no idea what to do next. My question is: how do I change this code to accomplish my goal?</p>
  
  <pre><code>&lt;script language="javascript" type="text/javascript"&gt;
      function GetTitleMatch() 
      {
  
  
          var Tit = $("#TextBox1").val();
         $().SPServices({
                       operation:"GetListItems",
                       listName:"CustomList",
                       async:false,
                       CAMLViewFields: "&lt;ViewFields&gt;"+
                                       "&lt;FieldRef Name='Title'/&gt;"+
                                       "&lt;ViewFields&gt;",
                       CAMLQuery:"&lt;Query&gt;&lt;Where&gt;&lt;Eq&gt;&lt;FieldRef Name='Title'/&gt;&lt;Value Type='Text'&gt;" + Tit + "&lt;/Value&gt;&lt;/Eq&gt;&lt;/Where&gt;&lt;/Query&gt;",
                         completefunc:function(xData,status)
                         {
  
                             alert($(xData.responseXML).find('[nodeName="z\\:row"]').length);
                         } 
                     });  
                 }
  
      &lt;/script&gt;
     &lt;a href="#" onclick="javascript:GetTitleMatch();"&gt;click&lt;/a&gt;
  </code></pre>