Simplify and tst each component in isolation. Write a simple loop to display a count and see if that works.