added a small function (counts 0 to 4)