Improved: Created a CountOperation for performance gain