Infrequent stooling in the first month of life is almost always due to insufficient intake of milk. A baby who is voiding but not stooling or gaining weight may not be receiving enough high fat hindmilk. Stooling frequency will correct itself with additional feeds or making sure the infant receives more hind milk at a feed.
Source: wiktionary