Change main to initialize zero for each index in counts.