Quick code to calculate the mode