Select 
A.id,
SUM(A.count+IsNull(B.count,0)) As count
from A Left Join B
On A.id=B.id
Group By A.id