A basic counting sore implementation in C++.