Statistics for Cantor sets and numbers with restricted partial quotients