How count Tags number from another table

I explain my problem in this link: