Count hashtags in a post.
Hashtag counts are extracted by matching the hash-word pattern and deduplicating case-insensitively, because repeating a tag adds nothing and some platforms treat it as spam. What counts as the right number differs by an order of magnitude between platforms: Instagram tolerates up to thirty with eight to fifteen typically performing best, while on X one or two outperform any larger number and LinkedIn favours three to five. Separating branded campaign tags from discovery tags matters because branded tags reach people who already follow you — only the discovery tags do the job of finding new audience.
Unique tag count
Match the hash-word pattern, lowercase, then deduplicate
Discovery tags
Discovery = unique hashtags - branded or campaign tags
Because their discovery mechanics differ. Instagram and TikTok use tags as a primary topical index, so more relevant tags widen reach. X surfaces content mainly through the network graph and engagement, where a wall of hashtags reads as spam and measurably reduces engagement.
Not identically. Repeating one block of tags across every post looks automated and narrows you to a fixed audience pool. Keep a small core set relevant to your niche and rotate the rest to match the specific post, which reaches different segments each time.