[Server][FaceRest] Add a new function: getNumberOfData

And, move "numberOfTriggers" key to after "triggers" array.