title: How to show the number of Group?
body: <p>I created a report to generate user which has a list of departments. I need to count the group but not the records within the group. </p>
  
  <p>How to do it with <em>JasperReports</em>?</p>
  
  <p>For example: - </p>
  
  <pre><code>**No: 1**
  Name      : User1
  Department: Depart1
              Depart2
              Depart3
  
  **No: 2**
  Name      : User2
  Department: Depart1
              Depart2
              Depart3
  
  **No: 3**
  Name      : User3
  Department: Depart1
              Depart2
              Depart3
  </code></pre>
  
  <p>In the above example, I need to count the count them 1, 2, 3 for 3 users. I don't want the numbering to count the records within the user, means I do not need the count to count the numbers of department for each user. </p>
  
  <p>Currently, I create a group for the <strong>User</strong> and there is a variable automatically created "User_COUNT". I use that in my detail band but it seems counting each records in the user group. </p>