<prompt> Andika programu ya Ruby ambayo husoma faili ya maandishi na kuhesabu idadi ya maneno ndani yake.  <response>: Hizi ni mfano wa programu ya Ruby ambayo inahesabu idadi ya maneno katika faili ya maandishi: Ruby - Fungua faili na usome yaliyomo yake: File, File, Ruby, Ruby, Ruby, Ruby, Ruby, Ruby, Ruby, Ruby, Ruby, Ruby, Ruby, Ruby, Ruby, Ruby, Ruby, Ruby, Ruby, Ruby, Ruby, Ruby, Ruby, Ruby, Ruby, Ruby, Ruby, Ruby, Ruby, Ruby, Ruby, Ruby, Ruby, Ruby, Ruby, Ruby, Rub 