Revert "Fix num_parts calculation, close #10"

This reverts commit 78e93309e5f7853d5ae370066f70de0cece294fe.