Implemented adjustable max_count for varargs
Implemented median