adding join, count()