[JsonParserAgent] Fix function type of countElements to unsigned int.

Because, json_array_get_length returns guint. (guint is defined as
unsigned int.)
[testJsonParserAgent] Fix assert value.