Fixed bug with uninitalized counter
updated description