1) there are just two restaurants and u think two of them are very good.
2) there are many restaurants, however u think two of many of them are very good.
* sometimes, after 'both', u dun need pronouns.
eg. both are very good.
But you need to tell what are u describing before this sentence.
*after 'both of', u need to add 'them', 'us' etc which means after both of u need to add nouns or pronouns.