Added gitignore
Added documentation for count and improved config check. Empty check should be isset.