title: Trying to count the amount of objects created
body: <p>I keep getting 0 for both counters before and after creating x amount of objects.</p>
  <pre><code>class Thing {
      private static int count = 0;
      
      public Thing() {
          count++;
      }
      
      public static int getCount(){
          return count;
      }
  }
  
  public class getCounter {
      public static void main(String[] args) {
          int counter = Thing.getCount();
          
          System.out.println(&quot;Objects created: &quot; + counter);
  
          Thing thing1 = new Thing();
          Thing thing2 = new Thing();
          
          System.out.println(&quot;Objects created: &quot; + counter);
      }
  }
  </code></pre>