I don't think there are any restrictions on the number of OSPF neighbors a router can have. Based on the number of routers you have in your network, number of networks that you have, and depending on the memory and CPU power of the routers, you will have to design your network with multiple areas. For more information you can look at :