Implement a countBy function that creates an object composed of keys generated from the results of running each element through an iteratee, with values being the count of elements that produced each key.
1. Basic Functionality
Accept an array and an iteratee (function or property name string)
Return an object where keys are the iteratee results
Values are the count of elements that produced each key
2. Iteratee Types
If iteratee is a function, call it with each element