Algorithm to Automatically Count the Number of Steel Pipes