Add limitation to task count.
Merge pull request #18 from ivanzhaowy/master

Add limitation to task count.