Edge-Counting Machine