added instruction count to prompt, and escape bell char (tiny changes)