Check out example codes for "pytho count avro file". It will help you in understanding the concepts better.

Code Example 1

Get the latest released version or build it from source.
https://github.com/jwoschitz/avrocount/releases/latest

Then simply invoke the tool via

java -jar avrocount.jar /path/to/myfile.avro

And it will print the amount of records found within the file to stdout.
  
Folders containing avro files

java -jar avrocount.jar /path/to/folder

Learn ReactJs, React Native from akashmittal.com