[DNN-5628] Fixed hydration bug found in Social

Added the similar count to the base retrieval stored procedures.