Fixing specs & reorder arguments

The proc_window arguments were the wrong way around for the 2nd and 3rd
ones, compared to the type spec.
Adding inet_count/2 and inet_window/3 functions

Similar to existing process functions, but for open TCP, UDP, and SCTP
connections.