AI-generated text: Detection methods and countermeasures