docs: public int getCount(final int state)
     {
        int count = 0;
        for (IConcurrentBagEntry e : sharedList) {
           if (e.getState() == state) {
              count++;
           }
        }
        return count;
     }