Fixed bug where median_counts size was not initialized