drupal 7のクエリから「count(*)」を取得するにはどうすればよいですか?クエリには、カスタムコンテンツタイプとカスタムフィールドを含める必要があります。
ノート
- カスタムコンテンツタイプ:従業員 
- カスタムフィールド名:field_employees_email 
- 注として、私は追加したいと考えています - WHERE field_employees_email = 'example@example.com' 
クエリに...
これまでのところ、私は次のようなものがあります:
$query = new EntityFieldQuery;    
$result = $query
     ->entityCondition('entity_type', 'node')
     ->propertyCondition('status', 1) // Getting published nodes only.
     ->propertyCondition('type', 'employees') //Getting 'employees' type only.
     // How do I include custom field as part of query?
     ->execute();
また、より簡単な方法があります
$total = count($result); クエリからCOUNT(*)を返すには?