Added count optional argument to AvroToJson