I have a confession to make. My name is Rich, and I'm a stupid investor.

You see, I'm a Freddie Mac (NYSE:FRE) shareholder. I also own a small stake in Fannie Mae (NYSE:FNM).

But that's not what makes me a stupid investor.

These men are not stupid
Plenty of great investors hold shares of the government-sponsored enterprises, including Bill Miller, Rich Pzena, Jean-Marie Eveillard, and David Dreman.

None of these men are remotely stupid. In fact, they are among the most accomplished investors of this generation.

But there's a key difference between those men and me.

OK, two key differences
For starters, each member of the aforementioned foursome is a far more experienced investor than I am. And that likely goes a long way toward explaining the second key difference between us.

My exposure to Freddie and Fannie was much greater than theirs.

Watching any of your holdings plummet by 85% is painful. But that pain increases exponentially when the sinking stock comprises a significant portion of your portfolio.

In my case, Freddie Mac was my largest individual holding -- by a long shot -- and my failure to practice proper diversification has likely postponed my retirement by a number of years.

Good thing I love my job
I'm not going to lie: My paper losses sting pretty badly right now. But I believe the lesson I learned from this experience will make me a much stronger investor -- and may actually wind up saving me money down the road.

Here it is: It doesn't matter how confident you are in any single company's prospects, or how great you believe your margin of safety to be. In investing, there is always a chance that your company's stock can drop precipitously -- and if you don't take pains to protect your portfolio against this possibility, you're placing your hard-earned assets at risk.

Take Rich Pzena, for example. Freddie Mac was his largest holding, too. But because Pzena owns a broad portfolio containing more than 100 names, Freddie comprised less than 5% of his total assets.

He'd already had a rough go of it so far in 2008, thanks to his heavy exposure to financial stocks like Citigroup (NYSE:C) and Capital One (NYSE:COF). But his results would have been far worse if he hadn't had some ballast in the form of stable stalwarts like Wal-Mart (NYSE:WMT) and Johnson & Johnson (NYSE:JNJ).

Diversify, diversify, diversify
Diversification is one of Tom and David Gardner's seven core principles at Motley Fool Stock Advisor. The two Fool co-founders believe that spreading risk across many investments helps investors keep their cool in down markets, while simultaneously building wealth in the long run.

But proper diversification doesn't consist of merely increasing your total number of stock holdings. After all, stocking up on financials, retailers, and homebuilders wouldn't have served you well in this market -- but adding some exposure to energy stocks or utilities would have shielded you from the worst of the recent market slide.

Proper diversification means owning numerous companies across industries, sectors, market capitalizations, risk levels (fast growers versus stable cash generators), and even countries. With diversification, some of your stocks will zig while the others zag -- instead of all dropping at once.

Say when
How many stocks should you own? That depends on your level of investing experience and risk tolerance.

Warren Buffett famously invested 40% of his capital in American Express (NYSE:AXP) when the company's shares stumbled in the wake of a messy salad oil scandal. The Oracle of Omaha is quite comfortable running a concentrated portfolio of companies in which he has supreme confidence. But as my Foolish friends Brian Richards and Tim Hanson pointed out, Buffett is a better investor than you.

That's why David and Tom argue that you should own at least a dozen stocks, and -- depending on your investing temperament -- possibly many more. As a general guideline, if any single position is keeping you up at night, you're probably not properly diversified.

If you're looking for some solid stock ideas to build -- or round out -- your well-diversified portfolio, consider taking a 30-day free trial of David and Tom's Stock Advisor service. You'll get detailed write-ups of all the brothers' recommendations, as well as their best bets for new money now. Just click here to get started -- there's no obligation to subscribe.

Rich Greifner owns shares of Freddie Mac and Fannie Mae, but none of the profitable companies mentioned in this article. American Express and Wal-Mart are Motley Fool Inside Value recommendations. Johnson & Johnson is an Income Investor pick. The Motley Fool owns shares of American Express. The Fool has a well-capitalized disclosure policy.