Counting UA, padding output.