Fixed previous commit for issue #9. This allows any decimal count to be used.