add b_count for buffer write and read