Merge pull request #1 from mlages/master

change private to protected for all params and functions and change count behavior
count = nbRec by default