[Solved] Count the values count which got from the url parameters React

Ryan Fonseka Asks: Count the values count which got from the url parameters React
I’m getting the values from url parameters like this.

http://localhost:3000/#/bookingSummary?movieid=3232&movieName=Mortal Kombat&seats=A6,5,5,A6,A6,5

then I get the values and put them into an array as follows

var movieData = []
    componentDidMount() {
        let movieInfo = queryString.parse(this.props.location.search)
        movieData = movieInfo 

then I want to count how many seats are in seats parameter I have no experience in React an explanation would be much appreciated

Ten-tools.com may not be responsible for the answers or solutions given to any question asked by the users. All Answers or responses are user generated answers and we do not have proof of its validity or correctness. Please vote for the answer that helped you in order to help others find out which is the most helpful answer. Questions labeled as solved may be solved or may not be solved depending on the type of question and the date posted for some posts may be scheduled to be deleted periodically. Do not hesitate to share your response here to help other visitors like you. Thank you, Ten-tools.