test counts
mem leak fix
missed add
Merge branch 'count_size' into dev