Count problem and display

Can someone correct this for me?

What’s not working in your code?