A noun is a word that functions as the name of a specific object or set of objects, such as living creatures, places, actions, qualities, states of existence, or ideas.
As the person is 7th from the either end, implies, there are 6 persons ahead of him and 6 persons behind him as shown below. Hence, there are 13 persons in the queue.