added counter for last bar and eight bars - for future syncronisation
tasks