I want to accurately count a pile of small things (1-60) using an ESP Device

Question/Issue:
Example image to count:

Project ID:
[Provide the project ID]

Context/Use case:
[Provide context or use case where the issue is encountered]

Steps Taken:

  1. I read the FOMO article Industrial Counter
  2. Realized everything is really well laid out and high contrast
  3. Saw it was using a pi and not an ESP

Additional Information:
This is a general question: I would like to throw some screws or washers on a table, use a camera enable ESP with a button and small lcd - press the button and see the count on the screen. Im just getting started with edge and revisiting it, so i would like to start with something “simple sounding.”

The idea is to do this without and API, but has EDGE incorporated and image AI that would make this easier?