Now that we have a container using the proofid as an index, gettng the number of proofs is as simple as getting this container size.
Also since there is no reason to cache the value anymore, the peermanager use of countProofs can be greatly simplified.
There is no change in behavior.
Depends on D11635.