Help to check count on a leaf which is referenced?

Hi All!

Lets say I have a leaf in list route-tableand that I am using as a leafref in different lists rule,rule-x,rule-y… Now when I want to restrict someother parameter when added to list a if its reference by atleast one of them should I still use a must statement ?. I am looking for any way to find the refcount of that leaf which is referenced ?.

eg:

      container balaji {

      list outer-bond-port {
          key porten;

          leaf porten {
             type Name;
          }   
  list rule {
            key name;
            max-elements 8;

            leaf name {
                description "Routing table name.";
                type string { length "2..10"; }
            }
            leaf table {
                description "Rule lookup routing table.";
                mandatory true;
                type leafref {
                   path "../../route-table/name";
                }
            }
  }
  list rule-x {
            key name;
            max-elements 8;

            leaf name {
                description "Routing table name.";
                type string { length "2..10"; }
            }
            leaf table {
                description "Rule lookup routing table.";
                mandatory true;
                type leafref {
                   path "../../route-table/name";
                }
            }
  }
  list rule-y {
            key name;
            max-elements 8;

            leaf name {
                description "Routing table name.";
                type string { length "2..10"; }
            }
            leaf table {
                description "Rule lookup routing table.";
                mandatory true;
                type leafref {
                   path "../../route-table/name";
                }
            }
  }
  list route-table {
            key name;
            max-elements 8;

            leaf name {
                description "Routing table name.";
                type string { length "2..10"; }
            }
  }
  leaf typen {
      type IpPoolType;
  }   
  list bond-port {
      description "Bond port list.";

      key port;
      max-elements 4;

      leaf port {
        type Name;
      }
  }   
}   

In above I just want to know if someone has configured route table name as leafref. I am not interested if its rule/rule-x/rule-y. I would like to know if their is anyway we can find the same.

rgds
Balaji Kamal Kannadassan