fix: write count