refactored all counting of strokes to Stroke class