In your example, the numbers come after the titles, so I assume that's what you want.
If you aren't going to update your TOC, you can just manually edit it like any other text.
If you need it to be able to update automatically, you need to enter Layout > Table of Contents and make sure that the Page Number comes After Entry. Furthermore set Between Entry and Number to
^n to insert a Forced Line Break between the entry and the number. (You can instead insert
^p to insert a Paragraph Return, but it doesn't really do much good as you can't specify a Paragraph Style for the number anyway - only a Character Style.)