Lebron went to Cleveland as a free agent, joining a team with a stud pg and immediately traded for an All Star PF.
You just got tricked by the cool story.
All of the titles count. If you don't count the titles in Miami, that's on you. It's silly, arbitrary, and nonsensical.