put counting in segbuf (experiment)