Many forums and websites display user information on posts or in tables (when you are looking at more than 1 user)
For example you might have a forum thread and each post on it displays information about the the poster like this:
Name: John Email: email@email.com Posts: 450
They probably have a table for users which is where the name and email are stored, and then a table for posts.
The only think I can think of to do it in one sql statement would be to add 1 to a row (the one that corresponds to the user making the post) in the user table each time the user posted which seems like a bad solution to me.
How do they count the number of posts for each user?