Tablet counter and capping machines