A local councillor told BBC Radio Leicester that the president of the temple had confirmed that "all those who were inside have been accounted for" and were "safe and well".
Please explain to me what "account for" means here. In dictionary, "account for something" means "to form the total of something" but it doesn't fit into this context.