replace count with length in id