bug fix for adjust count for TOF,BOL etc.
doc update
update