tscan(count, 10, 0.1, before_read=before_sample, after_read=after_sample)