Demography of compact-object binaries in the era of multi-messenger astronomy​