Continual Learning of Numerous Tasks from Long-tail Distributions