Sql Server How To Count Data In Tree Like Structure In Sql For Every