when is the best time/age to get a second dog to keep your dog company??

Harry is 5 months old now and i'm just thinking ahead to dog no. 2!