Adding the values of two file

I have two files as Count1 and Count2. The count contains only one values as 10 and count2 contains only one
values as 20. Now I want third file Count3 as count1+Count2. That is it should contain sum of two file(10+20=30)

a=`cat count1`
b=`cat count2`
c=`expr $a + $b`
echo $c > count3

considering that you have single value in each file and you need to add those two values and put it into another file,here is the solution

(( value = `cat count1` + `cat count2` ))
echo "$value" >> count3

Done!

Or:

awk '{s+=$0}END{print s}' count1 count2 > count3

Regards