5 oz. in a 5 gal batch is not going to give you any real flavor. I have heard of people who put almost 1 oz. of espresso in every bottle.
I recently made a coffee porter and did it 2 ways. I "dry beaned" by adding 3oz. (by weight) of coarsely ground, seriously dark roasted beans at flame-out. I also added 1 1/2 cups of strong brewed to the batch prime syrup before I bottled and this was for a 2.25 gal batch. I have not yet tasted the product fully conditioned, but the sample I took for the hydrometer tasted quite delicious. It tasted like a mild cup of black coffee, but not quite as bitter.
The amount also depends on several other factors, like type of beans, how you add them and what your other ingredients are. Your taste preferences will also be a large factor. Someone might like the amount in one batch but another might find it overwhelming.