fixed activity count bug, CRM-14175

----------------------------------------
* CRM-14175: activity tab on contact summary is super slow
  http://issues.civicrm.org/jira/browse/CRM-14175
Merge pull request #2501 from kurund/CRM-14175

fixed activity count bug, CRM-14175