implement count REST function for BrAPI.
implement the genotype rest api.