Added: Coutning functionality