Yet another modification to the sample ; still counting but not as much

deleted the post. Lest my error is that indexing one ; I am counting from the wrong place or missing one.