setProxyCount+getProxyCount, restructure, doc update