Answers.Body: <p>Ok i think i stumbled on the answer - </p>
  
  <pre><code>$signees = Entry::find()-&gt;sectionId(4)-&gt;count();
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-12-14T18:28:23.180Z
Answers.LastActivityDate: 2017-12-14T18:47:25.433Z
Answers.LastEditDate: 2017-12-14T18:47:25.433Z
Answers.UserDisplayName: Spotd
Body: <p>What is the best way to get only the total entry number from a section with the least overhead, in the element-api.php? </p>
  
  <p>Thanks</p>
  
  <p>Mark</p>
  
Tags: <plugin-elementapi>
Title: element-api plugin / get entry total in section in Craft 3
ThreadText: # element-api plugin / get entry total in section in Craft 3
  
  (Asked by: username_0 on 2017-12-14)
  
  What is the best way to get only the total entry number from a section with the least overhead, in the element-api.php?
  
  Thanks
  
  Mark
  
  **Tags:** plugin-elementapi
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2017-12-14. Score: 2
  
  Ok i think i stumbled on the answer -
  
  ```
  $signees = Entry::find()->sectionId(4)->count();
  
  ```
  
  
  ---
  
  