Ensure an integer for chunk_count.

https://rbcommons.com/s/twitter/r/180/