CCPrompt: Counterfactual Contrastive Prompt-Tuning for Many-Class Classification