How to recursively count threads belonging to a chain of forums

Cheers was a great help