Added clique reference counting for clique pairs