#include <bits/stdc++.h>
int i, j, k, m, n, q, w, l[10000], r[10000];
int main() {
  scanf("%d%d", &n, &m);
  for (i = 1; i <= n; i++) scanf("%d%d", &l[i], &r[i]);
  for (i = 1; i <= m; i++) {
    int ans = 0;
    for (j = 1; j <= n; j++)
      if ((l[j] - 1) / i < r[j] / i) ans++;
    printf("%d\n", ans);
  }
}
