title: How might I count the number of int members defined for a Java class?
body: <p>I have a class that stores a large number of <code>int</code> member variables, each defined as follows:</p>
  
  <pre><code>public final static int int1 = int1value;
  public final static int int2 = int2value;
  ...
  public final static int int106 = int106value;
  </code></pre>
  
  <p>There is a second class that needs to do a loop based on the number of <code>int</code>s in the first class. How would I go about adding a function to the first class to count these member variables?</p>