added clear() method for both StateCounter and Queue to delete the redis key and reinitialize it