tested whitespaces and the count seems to be correct