The populations of comet-like bodies in the Solar system