title: How can I get the size of an array in Julia?
body: <p>I'm trying to run the following piece of code:</p>
  
  <pre><code>function inversePoly(A::Array{Int64,1}, B::Array{Int64,1})
      n = size(A)
      retVal = A[end] / B[end]
      i = 1
      while i != n
          retVal = (retVal + 1 / B[n - i]) * A[n - i]
          i += 1
      end
      return retVal
  end
  
  inversePoly(Array(3:4), Array(4:5))
  </code></pre>
  
  <p>However, Julia gives me the following error:</p>
  
  <pre><code>LoadError: MethodError: no method matching -(::Tuple{Int64}, ::Int64)
  Closest candidates are:
    -(!Matched::Complex{Bool}, ::Real) at complex.jl:298
    -(!Matched::Missing, ::Number) at missing.jl:97
    -(!Matched::Base.CoreLogging.LogLevel, ::Integer) at logging.jl:107
    ...
  in expression starting at /home/francisco/Julia/abc.jl:12
  inversePoly(::Array{Int64,1}, ::Array{Int64,1}) at abc.jl:6
  top-level scope at none:0
  </code></pre>
  
  <p>The 6th line would be</p>
  
  <pre><code>retVal = (retVal + 1 / B[n - i]) * A[n - i]
  </code></pre>
  
  <p>This means that the statement</p>
  
  <pre><code>n = size(A)
  </code></pre>
  
  <p>Is saving a tuple in the variable n instead of an integer</p>
  
  <p>How can I get an integer representing the number of elements in A?</p>
  
  <p>Thanks in advance</p>