You shouldn't look at it just as a XX # of grams sugar question. I don't think there is a guide to say that.
It's all about total intake of carbs and the quality of carbs. Sugar from fresh fruit? You're cool and the gang... sugar from Hershey's Kisses?...not so much.
Bottom line is to have most sugar from fresh or unprocessed foods.