add length count, but still fail for exceeding time limit