change private to protected for all params and functions and change count behavior
Merge pull request #1 from mlages/master

change private to protected for all params and functions and change count behavior