Refactored the countByFinished of MyBatis2's TodoRepositoryImpl. #157

Please review #157 , and merge to master branch.