Add API endpoint to update elements processed for a particular task and UI to read that value