function count(args) {
        // undefined inputs always return undefined
        if (typeof args === 'undefined') {
            return 0;
        }

        return args.length;
    }
Count function
@param {Object} args - Arguments
@returns {number} Number of elements in the array