Added the counting time and printing it