Implemented counter for fib2