as he was dodging fresh horse manure mcfergus was remembering that there were more than twenty thousand horses in london and estimating that the city had to get rid twenty thousand tons of horse manure a year , when a hackney cab stopped in front of him and interrupted his calculations .