involving detection of the number of sides