How to turn on bar numbers?

Thanks a lot. I would have never looked there. Btw, another question about bars: how to delete them - at the end and in the middle?