How much money do you need to invest in stocks? I'm pretty much broke right now. Also, how many shares of each company do you need to buy?
Start with as much you feel comfortable losing. There are brokerages that dont charge commission or have minimum deposits so you can invest what you feel comfortable with. You want to get a feel for the market, you can invest a little bit from time to time and see how your stocks perform. The reason I would suggest starting with little money is because you will make rookie mistakes cause by human emotions that will make you lose money like selling out of fear only for the price to go back up and you miss out, trying to chase a stock on the way up only for it to drop back down.
And as new investor you will make these mistakes so its best to do it with a small amount first. Don't get discouraged by only having a small amount of money if you read and study about how to invest in businesses it wont matter because you will figure out what works for you. Investor Phil Town started with only $1,000 and turned it into one million in five years. Now obviously that's extremely rare but you should get my point.
If you are really serious about learning to invest start a paper trading account or simulation account which is like practice investing without using real money. You can put simulation money into a number of stocks and watch how they perform over time you will get a good sense of investing that way