For generating the number of tokens, following are considered as one:
1.) Keywords: if, else, while, do, for, float,..,etc.
2.) Identifiers: letter followed by letter or underscore or digit.
3.) Constant(consider any real number): 4,10,5.5
4.) Punctuation Symbols: :, ;, , , {, }, [, ], ?
5.) Operators: Relational Operator-> < , >, <=, >=, ==, etc
Logical Operator-> &&, ||, !
Bitwise Operatore-> &, |, ^(Ex-OR), <<, >>
6.) Few more: +, ++, -, --,/,*,+=,-=,=,etc
Now according to your question integer 1234 will be considered as ONE TOKEN (refer constant discussed above)
and , -1234.56789 will be considered as two token( first for - sign and second for 1234.56789)
Hope, this clears your doubt and help in understanding of the concept.