Fix 'to integer' conversion of max and min count values

Until now when you used values non-integer to max_count and/or min_count the
coercion worked like: min_count = int(2.5) so min_count received 2 instead of
raise bad request.

Convert to string before coerce to int solves the problem since int coercion
cannot convert from a string which is not a perfect int.

Change-Id: Ifaa9910e13614554d1769e71e8eba9587ec5a13b
Merge "Fix 'to integer' conversion of max and min count values"
Merge remote-tracking branch 'm_src_repo/master' into build-temp