add a test which uses count function