A counterpetition is a legal document filed by the responding party in a legal case, presenting their own claims or requests to be considered by the court.