Formula Characters Count (delete every characters/words after X number of words)

Hello, anyone know how to delete every characters/words after X number of words plz ?