refactor
make count doc