Solution to the friend's count problem
Solution for the asymmetric friendship problem