remove inline count() in error loop
use self instead of static for Context
instantiate args and options outside of definition helpers
Merge pull request #73 from brianium/bugfix/scrutinizer-fixes

Bugfix/scrutinizer fixes