Update count and order