lib/Janrain/Api/Capture/Entity.php
public function count($entityType, $filter = '')
	{
		$params = array('type_name' => $entityType);
		if (!empty($filter)) {
			$params['filter'] = $filter;
		}
		return $this->post('entity.count', $params);
	}
public function count($entityType, $filter = '')
	{
		$params = array('type_name' => $entityType);
		if (!empty($filter)) {
			$params['filter'] = $filter;
		}
		return $this->post('entity.count', $params);
	}
public function count ( $ entityType , $ filter = '' ) { $ params = array ( 'type_name' => $ entityType ) ; if ( ! empty ( $ filter ) ) { $ params [ 'filter' ] = $ filter ; } return $ this -> post ( 'entity.count' , $ params ) ; }
Count the number of records in an entityType.

@param string $entityType The entityType of the entity
@param string $filter     The expression to use to filter the results.
Count the number of records in an entityType .