Kyle Coetzer hit an unbeaten 150 as Northamptonshire reached 320-4 at the end of the first day against Leicestershire at Grace Road.