---
title: "Token counter animated icon"
description: "Token counter animated icon (Models & providers). Count token groups on two abacus rails. Light slides each bead 3.5 units; Strong drives each 8 units with staggered contact. The full beads slide along the rails and return to the starting tally."
canonical: https://generativeicons.com/icons/token-counter/
---

# Token counter animated icon

Count token groups on two abacus rails. Light slides each bead 3.5 units; Strong drives each 8 units with staggered contact. The full beads slide along the rails and return to the starting tally.

- Id: `token-counter`
- Category: Models & providers
- Search terms: tokens, token count, tokens used, token usage, count tokens, tally, token tally, llm usage, prompt length, usage count, input tokens, output tokens
- One action, back to rest
- Styles: outline, solid, duotone; outline weights 1.5, 2, 2.5 (any from 1 to 3); motion light or strong
- File: https://generativeicons.com/assets/token-counter.lottie (dotLottie, 5323 bytes, sha256 0cff1e16c417ef1f736757e458cbf530ad8df0e72dcfab504f46c53cd71131f4)
- License: MIT

## Install

```sh
npm install @lottiefiles/generative-icons-runtime
npx generative-icons init
npx generative-icons add token-counter
```

## React

```tsx
// npm install @lottiefiles/generative-icons-react
'use client';
import { AnimatedIcon } from '@lottiefiles/generative-icons-react';
import icon, { src } from './generative-icons/token-counter.mjs';

export function TokenCounterIcon() {
  return <AnimatedIcon icon={icon} src={src} size={32}
    color="#ffffff" variant="outline" weight={2}
    motion="light" theme="dark" />;
}
```

## JavaScript

```js
import { createIcon } from '@lottiefiles/generative-icons-runtime';
import icon, { src } from './generative-icons/token-counter.mjs';

const handle = await createIcon(canvas, {
  icon, src,
  color: '#ffffff', style: 'outline', weight: 2,
  motion: 'light', theme: 'dark'
});
button.addEventListener('click', () => handle.play());
// On removal: handle.destroy();
```

More: https://generativeicons.com/icons/token-counter/ · https://generativeicons.com/api/icons/token-counter
