Add method to get the total number of shares (#5)

Add a space after the if like that: `if (`.