redo of PR: Added Arr::count() helper (refs #4516)
Merge pull request #386 from melvinmt/bugfix/4516

redo of PR: Added Arr::count() helper (refs #4516)