Predictions for the infrared numbercounts and star formation histories from a semi analytic model of galaxy formation