public int getListSize() {
    if (policies != null) {
      return policies.size();
    }
    return 0;
  }
RangerPolicyList class to contain List of RangerPolicy objects.
ql/src/java/org/apache/hadoop/hive/ql/exec/repl/ranger/RangerPolicyList.java