add remainder count
Merge branch 'master' into gh-pages