Limit tags shown in post

$count is just an arbitrary variable name. If you’re using a separate loop to get tags and stop after a certain number (as shown on https://codex.wordpress.org/Function_Reference/get_the_tags), replace the $count variable in that example code with something like $tag_count or $counting or $treebark, and it won’t mess up your use of $count in the posts Loop anymore.