A computational model of learning to count in a multimodal, interactive environment