Define tagsCount()
Code cleanup.