title: SharePoint 2013 REST API Filtering With Count
body: <p>How can we count list items by filtering? For example there is a task list and I want to count specified user's task count</p>
  
  <p>I tried </p>
  
  <p><a href="http://www.siteurl.com/_api/web/lists/getByTitle" rel="nofollow">http://www.siteurl.com/_api/web/lists/getByTitle</a>('Tasks')/itemcount?$filter=AssignedTo/ID eq 2</p>
  
  <p>but it returns me all items count. Any idea ?</p>
  
  <p>Thanks</p>