What does a quantity surveyor actually do?

Usually we know the simple answer of what does a quantity surveyor do in construction question’s like cost and material estimation, monitor and …