Learned a valuable message about not filling the buffer all the way. 
Also fixed the counts allocation.