finds number of references per galaxy as listed on NED