corrected count, added unit tests, function for '0' - '9' -> function for number