split on spaces to count code