Increment count and sum, and add value to head.