Motor Driving Problem

Plus post all of it. For example how is SensorCount declared?