Australian seamer Michael Hogan took 5-43 and passed 50 Championship wickets as Glamorgan bowled out Leicestershire for 203 at Swansea.