Implement getTokenCount and AddToken