Modelling the development of counting with memory-augmented neural networks