Port the CountSum component