Counting Atoms or Molecules