Twitter Inc. is making a major shift in how it counts characters in Tweets, giving users more freedom to compose longer messages. The social media company will soon stop counting photos and links as part of its 140-character limit for messages, according to a person familiar with the matter. The change could happen in the next two weeks, said the person who asked not to be named because the decision isn’t yet public. Links currently take up 23 characters, even after Twitter automatically shortens them. The company declined to comment. It’s a step in a larger plan to give users more flexibility on the site. Chief Executive Officer Jack Dorsey said in January that the company was looking for new ways to display text on Twitter, and would experiment based on how people use the service. For example, some people tweet screenshots of longer text in articles, or send many tweets one after the other to tell a story. Twitter’s 140-character limit was originally adopted because it was a way to send Tweets while fitting all the information within a mobile text message — a common way for sending Tweets when the service debuted in 2006, before the proliferation of smartphones.