Properly recount topics (and posts) while merging topics - fixes #1193

Signed-off-by: emanuele <emanuele45@gmail.com>