update doc
count seems to be expensive