title: Count Aggregates in clingo
body: <p>Test data</p>
  
  <pre><code>addEmployee(EmplID, Name1, Name2, TypeOfWork, Salary, TxnDate)
  addEmployee("tjb1998", "eva", "mcdowell", "ra", 55000, 20).
  addEmployee("tjb1987x", "ben", "xena", "cdt", 68000, q50).
  addEmployee("tjb2112", "ryoko", "hakubi", "ra", 63000, 60).
  addEmployee("tjb1987", "ben", "croshaw", "cdt", 68000, 90).
  addEmployee("tjb3300m", "amane", "mauna", "ma", 61000, 105).
  </code></pre>
  
  <p>I want to group by employees as per the type of work and count of employees for the particular type of work. 
  e.g:</p>
  
  <pre><code>ra 4
  cdt 2
  ma 1
  </code></pre>
  
  <p>below is the query I am trying to run</p>
  
  <pre><code>employee(TOW) :- addEmployee(_,_,_,TOW,_,_).
  nmbrEmployeesOfSameType (N) :- N = #count { employee(TOW) }.
  </code></pre>
  
  <p>Please advise, I am at the beginner level for Clingo</p>